GetMovieSelection
TheGetMovieSelection
function returns information about a movie's current selection.
pascal void GetMovieSelection (Movie theMovie, TimeValue *selectionTime, TimeValue *selectionDuration);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).selectionTime
- Contains a pointer to a time value. The
GetMovieSelection
function places the starting time of the current selection into the field referred to by this parameter. Set this parameter tonil
if you do not want this information.selectionDuration
- Contains a pointer to a time value. The
GetMovieSelection
function places the duration of the current selection into the field referred to by this parameter. Set this parameter tonil
if you do not want this information.ERROR CODES
invalidMovie -2010 This movie is corrupted or invalid SEE ALSO
Your application can set the current selection by calling theSetMovieSelection
function, which is described in the previous section.